package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CreditWaterStationMapper;
import com.ruoyi.system.domain.CreditWaterStation;
import com.ruoyi.system.service.ICreditWaterStationService;

/**
 * 水质监测站点Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
@Service
public class CreditWaterStationServiceImpl implements ICreditWaterStationService
{
    @Autowired
    private CreditWaterStationMapper creditWaterStationMapper;

    /**
     * 查询水质监测站点
     * 
     * @param stationId 水质监测站点主键
     * @return 水质监测站点
     */
    @Override
    public CreditWaterStation selectCreditWaterStationByStationId(Long stationId)
    {
        return creditWaterStationMapper.selectCreditWaterStationByStationId(stationId);
    }

    /**
     * 查询水质监测站点列表
     * 
     * @param creditWaterStation 水质监测站点
     * @return 水质监测站点
     */
    @Override
    public List<CreditWaterStation> selectCreditWaterStationList(CreditWaterStation creditWaterStation)
    {
        return creditWaterStationMapper.selectCreditWaterStationList(creditWaterStation);
    }

    /**
     * 新增水质监测站点
     * 
     * @param creditWaterStation 水质监测站点
     * @return 结果
     */
    @Override
    public int insertCreditWaterStation(CreditWaterStation creditWaterStation)
    {
        return creditWaterStationMapper.insertCreditWaterStation(creditWaterStation);
    }

    /**
     * 修改水质监测站点
     * 
     * @param creditWaterStation 水质监测站点
     * @return 结果
     */
    @Override
    public int updateCreditWaterStation(CreditWaterStation creditWaterStation)
    {
        return creditWaterStationMapper.updateCreditWaterStation(creditWaterStation);
    }

    /**
     * 批量删除水质监测站点
     * 
     * @param stationIds 需要删除的水质监测站点主键
     * @return 结果
     */
    @Override
    public int deleteCreditWaterStationByStationIds(Long[] stationIds)
    {
        return creditWaterStationMapper.deleteCreditWaterStationByStationIds(stationIds);
    }

    /**
     * 删除水质监测站点信息
     * 
     * @param stationId 水质监测站点主键
     * @return 结果
     */
    @Override
    public int deleteCreditWaterStationByStationId(Long stationId)
    {
        return creditWaterStationMapper.deleteCreditWaterStationByStationId(stationId);
    }
} 